package com.zjitc.model;

import java.sql.Date;
import java.sql.Time;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/5/14 14:54
 * @description:
 */
public class Cart {

  private int cartid;
  private String username;
  private int catid;
  private String uuid;
  private int pay;
  private String state;
  private Date time;
  private String address;

  public Cart() {
  }

  public Cart(int cartid, String username, int catid, String uuid, int pay, String state,
      Date time, String address) {
    this.cartid = cartid;
    this.username = username;
    this.catid = catid;
    this.uuid = uuid;
    this.pay = pay;
    this.state = state;
    this.time = time;
    this.address = address;
  }

  public int getCartid() {
    return cartid;
  }

  public void setCartid(int cartid) {
    this.cartid = cartid;
  }

  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  public int getCatid() {
    return catid;
  }

  public void setCatid(int catid) {
    this.catid = catid;
  }

  public String getUuid() {
    return uuid;
  }

  public void setUuid(String uuid) {
    this.uuid = uuid;
  }

  public int getPay() {
    return pay;
  }

  public void setPay(int pay) {
    this.pay = pay;
  }

  public String getState() {
    return state;
  }

  public void setState(String state) {
    this.state = state;
  }

  public Date getTime() {
    return time;
  }

  public void setTime(Date time) {
    this.time = time;
  }

  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }

  @Override
  public String toString() {
    return "Cart{" +
        "cartid=" + cartid +
        ", username='" + username + '\'' +
        ", catid=" + catid +
        ", uuid='" + uuid + '\'' +
        ", pay=" + pay +
        ", state='" + state + '\'' +
        ", time=" + time +
        ", address='" + address + '\'' +
        '}';
  }
}
